package cn.topcodes.tcsf.admin.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import cn.topcodes.tcsf.admin.commons.generic.OperateLogConfig;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 系统文件
 * @author unicorn
 */
@Data
@ToString(callSuper = true)
@OperateLogConfig(name = "系统文件")
@Table(name = "t_sys_file")
public class SysFile extends IdEntity {

    private static final long serialVersionUID = 1L;

    /*文件名称*/
    @Column(name = "file_name")
    private String fileName;

    /*文件尺寸(字节)*/
    private Long size;

    /*文件存储相对路径*/
    private String path;

    /*文件mime类型*/
    private String mime;

    /*文件指纹*/
    private String md5;

    /*引用数量*/
    @Column(name = "ref_count")
    private Integer refCount;

    /*文件类型*/
    @Column(name = "type")
    private String type;

}